//
//  PictureScrollView.m
//  EasyBuy
//
//  Created by Zhu Xiangjun on 10/15/12.
//  Copyright (c) 2012 shen donghao. All rights reserved.
//

#import "PictureScrollView.h"
#import "PictureView.h"

@implementation PictureScrollView


- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.showsHorizontalScrollIndicator = NO;
        self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"commit_bg.png"]];

        self.contentSize = CGSizeMake(10+80*6, 80);
        
        for( int i = 0 ; i < 6 ; i++){
            PictureView *_pictureView = [[PictureView alloc] initWithFrame:CGRectMake(10+80*i, 10, 80, 80)];
            [self addSubview:_pictureView];
            [_pictureView release];
        }
        
    }
    return self;
}


@end
